package com.rtx.wms.std.adjustment.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rtx.api.annotation.RtxSTDRequest;
import io.swagger.annotations.ApiModel;

import java.util.Date;
import java.util.List;

@RtxSTDRequest(name = "wms调整单")
@TableName("adjustment")
@ApiModel(value = "Adjustment对象", description = "调整单表")
public class Adjustment {

    @TableId(value = "SERIALKEY", type = IdType.AUTO)
    private String serialkey;

    private String whseid;

    private String adjustmentkey;

    private String storerkey;

    private Date effectivedate;

    private String referencenumber;

    private String notes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date adddate;

    private String addwho;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date editdate;

    private String editwho;

    private String status;

    private String susr1;

    private String susr2;

    private String susr3;

    private String susr4;

    private String susr5;

    private String rtxstatus;

    private String interactionid;

    private String importfileid;

    private String exterimport;

    private String destcode;

    private Date rtxbudat;

    private String rtxudf1;

    private String rtxudf2;

    private String rtxudf3;

    private String rtxudf4;

    private String rtxudf5;

    private String rtxudf6;

    private String rtxudf7;

    private String rtxudf8;

    private String rtxudf9;

    private String rtxudf10;
    /**
     * 审批批人
     */
    private String rtxpasswho;
    /**
     * 审批结果编码 RTXADJTYPE
     */
    private String rtxpckresult;
    /**
     * 审批时间
     */
    private Date rtxpassdate;

    private String adjustmentresultfinishflag;
    /**
     * 接口执行状态P待处理-PS处理中-S成功-F失败
     */
    private String rtxedifinishflag;

    private String qty;

    private String batchid;

    private String writesystme;

    private String adjustmentkey2;

    private String source;
    /**
     * 接口消息描述
     */
    private String msg;
    /**
     * 执行次数
     */
    private Integer rtxseqno;
    /**
     * 接口执行完成时间
     */
    private Date rtxediexecdate;

    @TableField(exist = false)
    private List<Adjustmentdetail> details;
    //对应API场景编号
    @TableField(exist = false)
    private String rtxbsart;

    @TableField(exist = false)
    private Double totalQty;
    @TableField(exist = false)
    private Integer totallines;

    public Double getTotalQty() {
        return totalQty;
    }

    public void setTotalQty(Double totalQty) {
        this.totalQty = totalQty;
    }

    public Integer getTotallines() {
        return totallines;
    }

    public void setTotallines(Integer totallines) {
        this.totallines = totallines;
    }

    public String getRtxbsart() {
        return rtxbsart;
    }

    public void setRtxbsart(String rtxbsart) {
        this.rtxbsart = rtxbsart;
    }

    public List<Adjustmentdetail> getDetails() {
        return details;
    }

    public void setDetails(List<Adjustmentdetail> details) {
        this.details = details;
    }

    public String getSerialkey() {
        return serialkey;
    }

    public void setSerialkey(String serialkey) {
        this.serialkey = serialkey;
    }

    public String getWhseid() {
        return whseid;
    }

    public void setWhseid(String whseid) {
        this.whseid = whseid;
    }

    public String getAdjustmentkey() {
        return adjustmentkey;
    }

    public void setAdjustmentkey(String adjustmentkey) {
        this.adjustmentkey = adjustmentkey;
    }

    public String getStorerkey() {
        return storerkey;
    }

    public void setStorerkey(String storerkey) {
        this.storerkey = storerkey;
    }

    public Date getEffectivedate() {
        return effectivedate;
    }

    public void setEffectivedate(Date effectivedate) {
        this.effectivedate = effectivedate;
    }

    public String getReferencenumber() {
        return referencenumber;
    }

    public void setReferencenumber(String referencenumber) {
        this.referencenumber = referencenumber;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    public Date getAdddate() {
        return adddate;
    }

    public void setAdddate(Date adddate) {
        this.adddate = adddate;
    }

    public String getAddwho() {
        return addwho;
    }

    public void setAddwho(String addwho) {
        this.addwho = addwho;
    }

    public Date getEditdate() {
        return editdate;
    }

    public void setEditdate(Date editdate) {
        this.editdate = editdate;
    }

    public String getEditwho() {
        return editwho;
    }

    public void setEditwho(String editwho) {
        this.editwho = editwho;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSusr1() {
        return susr1;
    }

    public void setSusr1(String susr1) {
        this.susr1 = susr1;
    }

    public String getSusr2() {
        return susr2;
    }

    public void setSusr2(String susr2) {
        this.susr2 = susr2;
    }

    public String getSusr3() {
        return susr3;
    }

    public void setSusr3(String susr3) {
        this.susr3 = susr3;
    }

    public String getSusr4() {
        return susr4;
    }

    public void setSusr4(String susr4) {
        this.susr4 = susr4;
    }

    public String getSusr5() {
        return susr5;
    }

    public void setSusr5(String susr5) {
        this.susr5 = susr5;
    }

    public String getRtxstatus() {
        return rtxstatus;
    }

    public void setRtxstatus(String rtxstatus) {
        this.rtxstatus = rtxstatus;
    }

    public String getInteractionid() {
        return interactionid;
    }

    public void setInteractionid(String interactionid) {
        this.interactionid = interactionid;
    }

    public String getImportfileid() {
        return importfileid;
    }

    public void setImportfileid(String importfileid) {
        this.importfileid = importfileid;
    }

    public String getExterimport() {
        return exterimport;
    }

    public void setExterimport(String exterimport) {
        this.exterimport = exterimport;
    }

    public String getDestcode() {
        return destcode;
    }

    public void setDestcode(String destcode) {
        this.destcode = destcode;
    }

    public Date getRtxbudat() {
        return rtxbudat;
    }

    public void setRtxbudat(Date rtxbudat) {
        this.rtxbudat = rtxbudat;
    }

    public String getRtxudf1() {
        return rtxudf1;
    }

    public void setRtxudf1(String rtxudf1) {
        this.rtxudf1 = rtxudf1;
    }

    public String getRtxudf2() {
        return rtxudf2;
    }

    public void setRtxudf2(String rtxudf2) {
        this.rtxudf2 = rtxudf2;
    }

    public String getRtxudf3() {
        return rtxudf3;
    }

    public void setRtxudf3(String rtxudf3) {
        this.rtxudf3 = rtxudf3;
    }

    public String getRtxudf4() {
        return rtxudf4;
    }

    public void setRtxudf4(String rtxudf4) {
        this.rtxudf4 = rtxudf4;
    }

    public String getRtxudf5() {
        return rtxudf5;
    }

    public void setRtxudf5(String rtxudf5) {
        this.rtxudf5 = rtxudf5;
    }

    public String getRtxudf6() {
        return rtxudf6;
    }

    public void setRtxudf6(String rtxudf6) {
        this.rtxudf6 = rtxudf6;
    }

    public String getRtxudf7() {
        return rtxudf7;
    }

    public void setRtxudf7(String rtxudf7) {
        this.rtxudf7 = rtxudf7;
    }

    public String getRtxudf8() {
        return rtxudf8;
    }

    public void setRtxudf8(String rtxudf8) {
        this.rtxudf8 = rtxudf8;
    }

    public String getRtxudf9() {
        return rtxudf9;
    }

    public void setRtxudf9(String rtxudf9) {
        this.rtxudf9 = rtxudf9;
    }

    public String getRtxudf10() {
        return rtxudf10;
    }

    public void setRtxudf10(String rtxudf10) {
        this.rtxudf10 = rtxudf10;
    }

    public String getRtxpasswho() {
        return rtxpasswho;
    }

    public void setRtxpasswho(String rtxpasswho) {
        this.rtxpasswho = rtxpasswho;
    }

    public String getRtxpckresult() {
        return rtxpckresult;
    }

    public void setRtxpckresult(String rtxpckresult) {
        this.rtxpckresult = rtxpckresult;
    }

    public Date getRtxpassdate() {
        return rtxpassdate;
    }

    public void setRtxpassdate(Date rtxpassdate) {
        this.rtxpassdate = rtxpassdate;
    }

    public String getAdjustmentresultfinishflag() {
        return adjustmentresultfinishflag;
    }

    public void setAdjustmentresultfinishflag(String adjustmentresultfinishflag) {
        this.adjustmentresultfinishflag = adjustmentresultfinishflag;
    }

    public String getRtxedifinishflag() {
        return rtxedifinishflag;
    }

    public void setRtxedifinishflag(String rtxedifinishflag) {
        this.rtxedifinishflag = rtxedifinishflag;
    }

    public String getQty() {
        return qty;
    }

    public void setQty(String qty) {
        this.qty = qty;
    }

    public String getBatchid() {
        return batchid;
    }

    public void setBatchid(String batchid) {
        this.batchid = batchid;
    }

    public String getWritesystme() {
        return writesystme;
    }

    public void setWritesystme(String writesystme) {
        this.writesystme = writesystme;
    }

    public String getAdjustmentkey2() {
        return adjustmentkey2;
    }

    public void setAdjustmentkey2(String adjustmentkey2) {
        this.adjustmentkey2 = adjustmentkey2;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getRtxseqno() {
        return rtxseqno;
    }

    public void setRtxseqno(Integer rtxseqno) {
        this.rtxseqno = rtxseqno;
    }

    public Date getRtxediexecdate() {
        return rtxediexecdate;
    }

    public void setRtxediexecdate(Date rtxediexecdate) {
        this.rtxediexecdate = rtxediexecdate;
    }

    @Override
    public String toString() {
        return "Adjustment{" +
                "serialkey='" + serialkey + '\'' +
                ", whseid='" + whseid + '\'' +
                ", adjustmentkey='" + adjustmentkey + '\'' +
                ", storerkey='" + storerkey + '\'' +
                ", effectivedate=" + effectivedate +
                ", referencenumber='" + referencenumber + '\'' +
                ", notes='" + notes + '\'' +
                ", adddate=" + adddate +
                ", addwho='" + addwho + '\'' +
                ", editdate=" + editdate +
                ", editwho='" + editwho + '\'' +
                ", status='" + status + '\'' +
                ", susr1='" + susr1 + '\'' +
                ", susr2='" + susr2 + '\'' +
                ", susr3='" + susr3 + '\'' +
                ", susr4='" + susr4 + '\'' +
                ", susr5='" + susr5 + '\'' +
                ", rtxstatus='" + rtxstatus + '\'' +
                ", interactionid='" + interactionid + '\'' +
                ", importfileid='" + importfileid + '\'' +
                ", exterimport='" + exterimport + '\'' +
                ", destcode='" + destcode + '\'' +
                ", rtxbudat=" + rtxbudat +
                ", rtxudf1='" + rtxudf1 + '\'' +
                ", rtxudf2='" + rtxudf2 + '\'' +
                ", rtxudf3='" + rtxudf3 + '\'' +
                ", rtxudf4='" + rtxudf4 + '\'' +
                ", rtxudf5='" + rtxudf5 + '\'' +
                ", rtxudf6='" + rtxudf6 + '\'' +
                ", rtxudf7='" + rtxudf7 + '\'' +
                ", rtxudf8='" + rtxudf8 + '\'' +
                ", rtxudf9='" + rtxudf9 + '\'' +
                ", rtxudf10='" + rtxudf10 + '\'' +
                ", rtxpasswho='" + rtxpasswho + '\'' +
                ", rtxpckresult='" + rtxpckresult + '\'' +
                ", rtxpassdate=" + rtxpassdate +
                ", adjustmentresultfinishflag='" + adjustmentresultfinishflag + '\'' +
                ", rtxedifinishflag='" + rtxedifinishflag + '\'' +
                ", qty='" + qty + '\'' +
                ", batchid='" + batchid + '\'' +
                ", writesystme='" + writesystme + '\'' +
                ", adjustmentkey2='" + adjustmentkey2 + '\'' +
                ", source='" + source + '\'' +
                ", msg='" + msg + '\'' +
                ", rtxseqno=" + rtxseqno +
                ", rtxediexecdate=" + rtxediexecdate +
                ", details=" + details +
                ", rtxbsart='" + rtxbsart + '\'' +
                '}';
    }
}
